﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<QL_LICHLAMVIEC.Models.TaiKhoan>>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Admin</title>
</head>
<body>
    <table border="1px" style="border: 1px solid black;">
        <tr>
            <th></th>
            <th>
                MSNV
            </th>
            <th>
                HoTen
            </th>
            <th>
                DienThoai
            </th>
            <th>
                NgaySinh
            </th>
            <th>
                UserName
            </th>
            <th>
                Password
            </th>
            <th>
                Email
            </th>
            <th>
                Chucvu
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.MSNV}) %> |
                <%: Html.ActionLink("Delete", "Delete", new { id = item.MSNV })%>
            </td>
            <td>
                <%: item.MSNV %>
            </td>
            <td>
                <%: item.HoTen %>
            </td>
            <td>
                <%: item.DienThoai %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.NgaySinh) %>
            </td>
            <td>
                <%: item.UserName %>
            </td>
            <td>
                <%: item.Password %>
            </td>
            <td>
                <%: item.Email %>
            </td>
            <td>
                <%: item.Chucvu %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</body>
</html>

